﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;

namespace LdtJudge.DataEngine.Model.XMLConfigModel.SituationPloModel
{
    /// <summary>
    /// 通用情节排除配置类
    /// </summary>
    [Serializable]
    [XmlRootAttribute("casecause", IsNullable = false)]
    public class CommonPlotExclusionModel
    {
        /// <summary>
        /// 罪名集合
        /// </summary>
        [XmlElement("cause")]
        public List<PlotChare> Causes { get; set; }
    }

    /// <summary>
    /// 罪名
    /// </summary>
    public partial class PlotChare
    {
        /// <summary>
        /// 罪名Id
        /// </summary>
        [XmlAttribute("causeid")]
        public string CauseId { get; set; }

        /// <summary>
        /// 排除罪名集合
        /// </summary>
        [XmlElement("exclude")]
        public PlotChareExclude Exclude { get; set; }
    }

    /// <summary>
    /// 排除罪名
    /// </summary>
    public partial class PlotChareExclude
    {
        /// <summary>
        /// 法定情节
        /// </summary>
        [XmlElement("commonlegalplot")]
        public ExcluLegalPlot LegalPlot { get; set; }

        /// <summary>
        /// 酌定情节
        /// </summary>
        [XmlElement("commondiscretionplot")]
        public ExcluDiscretionPlot DiscretionPlot { get; set; }
    }

    /// <summary>
    /// 法定情节
    /// </summary>
    public partial class ExcluLegalPlot
    {
        /// <summary>
        /// 法定情节详情
        /// </summary>
        [XmlElement("detail")]
        public List<ExcluPlotDetail> Details { get; set; }
    }

    /// <summary>
    /// 酌定情节
    /// </summary>
    public partial class ExcluDiscretionPlot
    {
        /// <summary>
        /// 酌定情节详情
        /// </summary>
        [XmlElement("detail")]
        public List<ExcluPlotDetail> Details { get; set; }
    }

    /// <summary>
    /// 排除情节详情
    /// </summary>
    public partial class ExcluPlotDetail
    {
        /// <summary>
        /// 情节Id
        /// </summary>
        [XmlAttribute("CCID")]
        public string CCID { get; set; }

        /// <summary>
        /// 情节名称
        /// </summary>
        [XmlAttribute("CCName")]
        public string CCName { get; set; }

    }
}
